package com.dubbo.consumer;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.dubbo.service.SmsService;

public class Consumer {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbo-consumer-spring.xml");
		context.start();
		SmsService helloService = (SmsService) context.getBean("smsService");  
        String result = helloService.sendSms("-----------kkkkkk");
        System.out.println("==================: "+result);
	}
}
